package cn.cleanarch.infra.idp.uaa.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.cleanarch.infra.idp.database.entity.DBModel;
import org.hibernate.validator.constraints.Length;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@ToString
@EqualsAndHashCode(callSuper = true)
@TableName("t_profile")
public class Profile extends DBModel {

  private Integer gender;

  @Length(max = 255)
  private String avatar;

  @Length(max = 255)
  private String address;

  @Length(max = 255)
  private String email;

  private Long userId;

  @Length(max = 50)
  private String nickName;

}
